<template>
  <div id="app">
    <el-container>
      <el-header class="el-header" style="background-color: black;padding:0px">
        <home-header></home-header>
      </el-header>
      <el-container>
        <el-aside width=15%>
          <!--引入自定义左侧菜单栏-->
          <left-menu></left-menu>
        </el-aside>
        <el-main >
          <!--引入跳转路由-->
          <router-view ></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
   import HomeHeader from './components/Header'
  import LeftMenu from './components/LeftMenu'
 //请求头带token 
const axios=require("axios");
axios.defaults.headers['jwt'] = localStorage.getItem('jwt');
export default{
  name:"Home",
  components:{
    HomeHeader,
    LeftMenu
  },
  beforeCreate () {
      document.querySelector('body').setAttribute('style', 'margin:0px');
}
}

</script>
<style scope>
  .el-main{
    padding: 5px !important;
  }
</style>

